package com.huc.netty.example.provider;

import com.huc.netty.protocol.NettyServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author huc
 * @version 1.0
 * @note
 * @date 2021/9/16 11:06
 */
@ComponentScan(basePackages = {"com.huc.netty.util","com.huc.netty.example.provider.service"})
@SpringBootApplication
public class NettyExampleProviderApplication {
    public static void main(String[] args) {
        SpringApplication.run(NettyExampleProviderApplication.class, args);
        new NettyServer("127.0.0.1", 8080).start();
    }
}
